package com.workManager.mapper;

import com.workManager.pojo.TbProjectPayment;
import com.workManager.pojo.TbProjectPaymentExample;
import com.workManager.vo.ProjectPaymentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TbProjectPaymentMapper {
    int countByExample(TbProjectPaymentExample example);

    int deleteByExample(TbProjectPaymentExample example);

    int deleteByPrimaryKey(Integer paymentId);

    int insert(TbProjectPayment record);

    int insertSelective(TbProjectPayment record);

    List<TbProjectPayment> selectByExample(TbProjectPaymentExample example);

    TbProjectPayment selectByPrimaryKey(Integer paymentId);

    int updateByExampleSelective(@Param("record") TbProjectPayment record, @Param("example") TbProjectPaymentExample example);

    int updateByExample(@Param("record") TbProjectPayment record, @Param("example") TbProjectPaymentExample example);

    int updateByPrimaryKeySelective(TbProjectPayment record);

    int updateByPrimaryKey(TbProjectPayment record);

    List<ProjectPaymentVo> queryPayment(@Param("cm")Map map);

    int updatePaymentRatio(Map map);
}